// 输出 [{content: ''}]
export default (page, options, callback) => {
  if (options.body) {
    let body = options.body;
    if (typeof body === "string") {
      body = [body];
    } else if (!Array.isArray(body)) {
      console.error("Expect to receive 'array' or 'string'");
      callback && callback([]);
      return;
    }
    callback &&
      callback(body.map((item) => ({ content: page.replace("##", item) })));
    return;
  } else {
    callback && callback([]);
    return;
  }
};
